home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / gadgets / rcs / cstring.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.8 KB  |  107 lines

  1. head    1.2;
  2. access;
  3. symbols;
  4. locks
  5.     dlorre:1.2; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.2
  10. date    97.07.14.04.26.33;    author dlorre;    state Exp;
  11. branches;
  12. next    1.1;
  13.  
  14. 1.1
  15. date    96.08.22.02.06.07;    author dlorre;    state Exp;
  16. branches;
  17. next    ;
  18.  
  19.  
  20. desc
  21. @Oui.lib -- Object User Interface
  22. Projet créé en 1994
  23. Auteur: Dominique Lorre
  24. @
  25.  
  26.  
  27. 1.2
  28. log
  29. @*** empty log message ***
  30. @
  31. text
  32. @#ifndef CLASS_CSTRING_H
  33. #define CLASS_CSTRING_H
  34.  
  35. #ifndef EXEC_TYPES_H
  36. #include <exec/types.h>
  37. #endif
  38.  
  39. #if !defined( PLACETEXT_LEFT )
  40. #define PLACETEXT_LEFT  0x0001  /* Right-align text on left side */
  41. #endif
  42.  
  43. #ifndef CLASS_WINDOW_H
  44. class window ;
  45. #endif
  46.  
  47. #ifndef CLASS_GADGETLIST_H
  48. class gadgetlist ;
  49. #endif
  50.  
  51. #ifndef CLASS_GADGET_H
  52. #include "gadgets/gadget.h"
  53. #endif
  54.  
  55.  
  56. const char  INSIDECSTRING = 0 ;
  57. const char  RIGHTCSTRING = 1 ;
  58. const char  BOTTOMCSTRING = 2 ;
  59. const char  WIDTHCSTRING = 4 ;
  60. const char  HEIGHTCSTRING = 8 ;
  61.  
  62.  
  63. // ========================================================================
  64. // ==========================  CSTRING CLASS ==============================
  65. // ========================================================================
  66.  
  67.  
  68. class cstring : public gadget
  69. {
  70.     STRPTR      norm1 ;
  71.     STRPTR      norm2 ;
  72.     STRPTR      under ;
  73.  
  74.     IntuiText   *it1 ;
  75.     IntuiText   *it2 ;
  76.     IntuiText   *it3 ;
  77.  
  78.     TextFont    *font ;
  79.     TTextAttr   *underline ;
  80.     TTextAttr   *plain ;
  81. public:
  82.     cstring(gadgetlist *gl,
  83.             void (window::*func)(gadget *, unsigned long, unsigned short),
  84.             const char*t, const char* text, long border=FALSE, long place=PLACETEXT_LEFT,
  85.             char style=INSIDECSTRING) ;
  86.     ~cstring() ;
  87.     void set(const char *text) ;
  88.     void keystroke(BOOL shifted) ;
  89. };
  90.  
  91. #endif
  92. @
  93.  
  94.  
  95. 1.1
  96. log
  97. @Initial revision
  98. @
  99. text
  100. @d53 1
  101. a53 1
  102.             STRPTR t, STRPTR text, long border=FALSE, long place=PLACETEXT_LEFT, 
  103. d56 1
  104. a56 1
  105.     void set(STRPTR text) ;
  106. @
  107.